﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Design;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Threading.Tasks;

namespace SimpleNet.Net
{
	public interface IDataPack
	{
		/// <summary>
		/// 缓冲区域
		/// </summary>
		public byte[] ReceiveBuffer { get; set; }

		/// <summary>
		/// 消息头
		/// </summary>
		public byte[] HeaderBuffer { get; set; }
		/// <summary>
		/// 消息尾部
		/// </summary>
		public byte[] TailBuffer { get; set; }
		public byte[] CheckBuffer { get; set; }
		public int CRC { get; set; }
		public bool Complete { get; set; }

		/// <summary>
		/// 消息id
		/// </summary>
		public int CommandID { get; set; }
		/// <summary>
		/// 消息长度
		/// </summary>
		public int Length { get; set; }
	}
}
